package com.kuai.todo1.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class MainCon {

    @RequestMapping("/hello")
    public String hello() {
        System.out.println("Hello endpoint accessed 你好, 世界");
        return "Hello, World! 你好, 世界!";
    }

    @RequestMapping("/test")
    public String test() {
        return "Test endpoint!";
    }

    @RequestMapping("/test2")
    public String test2() {
        return "Test2 endpoint!";
    }
}
